import request from '@/utils/request';

// 获取社保大库查询条件列表
export async function getInsSearchList(params) {
  return request(`/mgrApi/suppIns/queryAccoName`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 获取公积金大库查询条件列表
export async function getAccuSearchList(params) {
  return request(`/mgrApi/suppAccu/queryAccoName`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 获取工伤二级户查询条件列表
export async function getInjuryList(params) {
  return request(`/mgrApi/injSecAccoApi/list`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 获取社保大库列表
export async function getSocialList(params) {
  return request(`/mgrApi/suppIns/getList`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 删除社保大库
export async function deleteSocailMul(params) {
  return request(`/mgrApi/suppIns/deleteMul`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 删除公积金大库
export async function deleteAccuMul(params) {
  return request(`/mgrApi/suppAccu/deleteMul`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 删除公积金大库
export async function deleteInjuryMul(params) {
  return request(`/mgrApi/injSecAccoApi/delete`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 获取公积金大库列表
export async function getAccuList(params) {
  return request(`/mgrApi/suppAccu/getList`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 获取工伤二级户列表
export async function getInjuryPageList(params) {
  return request(`/mgrApi/injSecAccoApi/pageList`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 修改社保账户状态
export async function updateInsStatus(params) {
  return request(`/mgrApi/suppIns/updateStatus`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 修改公积金账户状态
export async function updateAccuStatus(params) {
  return request(`/mgrApi/suppAccu/updateStatus`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 修改工伤二级户状态
export async function updateInjuryStatus(params) {
  return request(`/mgrApi/injSecAccoApi/updateState`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function getBigName(params) {
  return request(`/mgrApi/suppIns/queryAccoName`, {
    method: 'POST',
    body: params,
  });
}

export async function custName(params) {
  return request(`/mgrApi/mgrMdCust/likeName`, {
    method: 'POST',
    body: params,
  });
}

// 工伤二级户新增并启用
export async function submitEnable(params) {
  return request(`/mgrApi/injSecAccoApi/insertStart`, {
    method: 'POST',
    body: params,
  });
}

// 工伤二级新增
export async function submitAll(params) {
  return request(`/mgrApi/injSecAccoApi/insert`, {
    method: 'POST',
    body: params,
  });
}

// 工伤二级户详情
export async function fetchInjuryDetails(params) {
  return request(`/mgrApi/injSecAccoApi/getInfo`, {
    method: 'POST',
    body: params,
  });
}

export async function getDetailInfo(params) {
  return request(`/mgrApi/injSecAccoApi/getInfo`, {
    method: 'POST',
    body: params,
  });
}

export async function injuryUpdate(params) {
  return request(`/mgrApi/injSecAccoApi/update`, {
    method: 'POST',
    body: params,
  });
}

export async function getFileNo(params) {
  return request(`/mgrApi/injSecAccoApi/downloadTemplate`, {
    method: 'POST',
    body: params,
  });
}
